package com.hrm.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hrm.dao.DepartDao;
import com.hrm.pojo.Depart;
@Service
@Transactional
public class DepartService {

	private DepartDao dao;
	
	@Transactional(readOnly=true)
	public List<Depart> findAll() {
		return dao.findAll();
	}

	@Autowired
	public void setDao(DepartDao dao) {
		this.dao = dao;
	}

	
}
